use carpet::base::error::ServerError;
use crate::api::prelude::*;

#[text_dto]
pub struct RequestData {
    pub title: String,

    pub age: Option<i32>,

    pub description: Vec<String>,
}

#[text_dto]
pub struct ResponseData {
    pub content: String,
}

#[handler(protocol = "sse")]
async fn _handle(self, data: Json<RequestData>) -> Result<SseResponse<ResponseData>, ServerError>;
